using System;
using System.Text.RegularExpressions;

namespace System72.NTextile.RegexLibrary
{
    public class ParenthesisRegex:BaseRegex
    {
        public ParenthesisRegex()
        {
            string pattern = String.Format(@"\{0}((?>[^{0}{1}]+|\{0}(?<depth>)|\{1}(?<-depth>))*(?(depth)(?!)))\{1}", "(", ")");
            m_regex = new Regex(pattern);
        }
    }
}
